/*    */ package com.qmsk.business.member.memberIntegralBill.controller;
/*    */ 
/*    */ import com.qmsk.business.member.memberIntegralBill.dao.MemberIntegralBillDao;
/*    */ import com.utils.gson.out.GsonEbRst;
/*    */ import com.utils.web.RequestUtils;
/*    */ import com.utils.web.ResponseUtils;
/*    */ import java.sql.SQLException;
/*    */ import java.util.HashMap;
/*    */ import java.util.Map;
/*    */ import javax.servlet.http.HttpServletRequest;
/*    */ import javax.servlet.http.HttpServletResponse;
/*    */ import org.apache.log4j.Logger;
/*    */ import org.springframework.beans.factory.annotation.Autowired;
/*    */ import org.springframework.stereotype.Controller;
/*    */ import org.springframework.web.bind.annotation.PathVariable;
/*    */ import org.springframework.web.bind.annotation.RequestMapping;
/*    */ 
/*    */ @Controller
/*    */ @RequestMapping({"/memberIntBill"})
/*    */ public class MemberIntegralBillController
/*    */ {
/* 32 */   private static final Logger logger = Logger.getLogger(MemberIntegralBillController.class);
/*    */ 
/*    */   @Autowired
/*    */   private MemberIntegralBillDao dao;
/*    */ 
/*    */   @RequestMapping(value={"find/billList/{pageIdx}/{pageSize}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getListAll(HttpServletRequest request, HttpServletResponse response, @PathVariable("pageIdx") Integer nPageIdx, @PathVariable("pageSize") Short nPageSize)
/*    */   {
/* 56 */     nPageSize = RequestUtils.getRequestValidPageSize(nPageSize);
/*    */     try {
/* 58 */       Long memberId = RequestUtils.getLong(request, "memberId");
/* 59 */       Long shopId = RequestUtils.getLong(request, "shopId");
/* 60 */       Map params = new HashMap();
/* 61 */       params.put("memberId", memberId);
/* 62 */       params.put("shopId", shopId);
/* 63 */       GsonEbRst gsonEbRst = this.dao.getGsonlOfmemberId(params, nPageIdx, nPageSize);
/* 64 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 66 */       logger.error(e);
/* 67 */       ResponseUtils.setErrorMsgResponse(
/* 68 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ 
/*    */   @RequestMapping(value={"find/getIntegral/{pageIdx}/{pageSize}"}, method={org.springframework.web.bind.annotation.RequestMethod.GET})
/*    */   public void getgetIntegral(HttpServletRequest request, HttpServletResponse response, @PathVariable("pageIdx") Integer nPageIdx, @PathVariable("pageSize") Short nPageSize)
/*    */   {
/*    */     try {
/* 76 */       Long memberId = RequestUtils.getLong(request, "memberId");
/* 77 */       Long shopId = RequestUtils.getLong(request, "shopId");
/* 78 */       Map params = new HashMap();
/* 79 */       params.put("memberId", memberId);
/* 80 */       params.put("shopId", shopId);
/* 81 */       GsonEbRst gsonEbRst = this.dao.getgetIntegral(params);
/* 82 */       ResponseUtils.setResponseResult(gsonEbRst, response);
/*    */     } catch (SQLException e) {
/* 84 */       logger.error(e);
/* 85 */       ResponseUtils.setErrorMsgResponse(
/* 86 */         RequestUtils.getFindDataErrorMessage(request), response);
/*    */     }
/*    */   }
/*    */ }

/* Location:           C:\Users\Administrator\Desktop\新建文件夹\WEB-INF\classes\
 * Qualified Name:     com.qmsk.business.member.memberIntegralBill.controller.MemberIntegralBillController
 * JD-Core Version:    0.5.3
 */